﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Doves.DataAccessLayer;
using Doves.Utilities;

namespace Doves.BussinessLayer
{
    public class ArticleAnalizerBO : BaseBO
    {
        public IEnumerable<ArticleAnalizer> GetAllArticleAnalizer()
        {
            return _dao.ArticleAnalizer.GetAllArticleAnalizer();
        }
        public ArticleAnalizer GetArticleAnalizerById(int Id)
        {
            return _dao.ArticleAnalizer.GetArticleAnalizerById(Id);
        }
        public bool UpdateArticleAnalizer(ArticleAnalizer inCrawlerLink)
        {
            return _dao.ArticleAnalizer.UpdateArticleAnalizer(inCrawlerLink);
        }
        public bool InsertArticleAnalizer(ArticleAnalizer inCrawlerLink)
        {
            return _dao.ArticleAnalizer.InsertArticleAnalizer(inCrawlerLink);
        }
        //public bool IsExists(ArticleAnalizer inArticleAnalizer)
        //{
        //    return _dao.ArticleAnalizer.IsExists(inArticleAnalizer);
        //}
        public ReturnValue<bool> DelArticleAnalizer(int inId)
        {
            return _dao.ArticleAnalizer.DelArticleAnalizer(inId);
        }
        public ReturnValue<bool> DelArticleAnalizer(ArticleAnalizer inCrawlerLink)
        {
            return _dao.ArticleAnalizer.DelArticleAnalizer(inCrawlerLink);
        }
        
        //========================================================================
        public ArticleAnalizer GetArticleAnalizerByZombyId(int inZomId)
        {
            return _dao.ArticleAnalizer.GetArticleAnalizerByZombyId(inZomId);
        }

        public ArticleAnalizer GetArticleAnalizerByLink(Link inLink)
        {
            return _dao.ArticleAnalizer.GetArticleAnalizerByLink(inLink);
        }
    }
}
